﻿using T_settlement.Infrastructure.Impl;
using T_settlement.Infrastructure.Interfacec;

namespace T_settlement.API.Extensions
{
    public static class ServicesColltionExtenssions
    {

        /// <summary>
        /// 扩展注入
        /// </summary>
        /// <param name="services"></param>
        /// <returns></returns>
        public static IServiceCollection AddServices(this IServiceCollection services)
        {

           //注入收费
            services.AddScoped<lsettlementRepository, settlementRepository>();
            //注入付费
            services.AddScoped<IPayMoneyRepository, PayMoneyRepository>();

            //注入进项发票
            services.AddScoped<InvoiceRepository, nvoiceRepository>();
            //注入销项发票
            services.AddScoped<IOutputRepository, OutputRepository>();

            //注入付款信息
            services.AddScoped<IPaymentRepository, PaymentRepository>();


           
            return services;
        }




    }
}
